//
//  GolfGameViewController.m
//  Golf
//
//  Created by mrbradle on 10/26/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "GolfGameViewController.h"


@implementation GolfGameViewController

static int DRAW_X_POS = 120;
static int DRAW_Y_POS = 176;
static int DISCARD_X_POS = 164;
static int DISCARD_Y_POS = 176;

static int CENTER_X = 160;
static int CENTER_Y = 200;

static int RADIUS = 120;

static float PI = 3.14159265; 

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        
    }
    return self;
}

- (void)dealloc
{
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    //GolfGamePlayer* tempPlayer = [GolfGamePlayer
    
    HandViewController* test = [[[HandViewController alloc] init] autorelease];
    [test setPlayer:nil x:0 y:0];
    [self.view addSubview:test.view];
    //test.playerNameLabel.text = @"hey";
    
    
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
